﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace CreateFilesWithDate
{
    class Program
    {

        static void Main(string[] args)
        {
            int i = 0;
            char j = 'a';
            int fileCounter = 1;
            string currentDir = Environment.CurrentDirectory + "\\directories\\";
            for (i = 1; i < 10; i++)
            {
                Directory.CreateDirectory(currentDir + i);
                
                for (j = 'A'; j <= 'C'; j++)
                {
                    File.WriteAllText((String.Format("{0}\\{1}\\{2}.txt", currentDir, i, j)), String.Format("File number {0}       {1}", fileCounter, DateTime.Now));
                    fileCounter++;
                }
            }
        }
    }
}

